-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement demo version of config grouping #284
Conversation
if err != nil { | ||
return err | ||
} | ||
r, err := repo.NewLocal(wd, secrets.NewSecretsOrFail()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the try lib I used feels nice to avoid all this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is definitely an egregious example of go error handling exploding haha
} | ||
|
||
// Builder for a protobuf message definition string | ||
type ProtoDefBuilder struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice stuff! we could also do go templating, unsure of the tradeoff between the two approaches I kinda took both in my PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good point, I honestly didn't think about it too much - I think templating might be cleaner and less error-prone for potential edge cases so happy to switch over when we want to productionize
Added new command
lekko config group
Fully specified args example
Or you can just use
for interactive mode and to show off name suggestion
.proto
file based on the package specifiedLimitations: